// 添加逗号
#include <iostream>
#include <iostream>
using namespace std;

int main() {
    string s, ret;
    cin >> s;
    for(int i = s.size() - 1, count = 3; i >= 0; i--)
    {
        if(count == 0)
        {
            count = 3;
            ret = "," + ret;
        }
        --count;
        ret = s[i] + ret;
    }
    cout << ret << endl;
}

// 跳台阶
#include <iostream>
using namespace std;

int dp[41] = {0};

int main() {
    int n;
    cin >> n;
    dp[1] = 1, dp[2] = 2;
    for(int i = 3; i <= n; i++)
        dp[i] = dp[i - 1] + dp[i - 2];
    cout << dp[n] << endl;
    return 0;
}

// 扑克牌顺子
class Solution {
    public:
      bool IsContinuous(vector<int>& numbers) {
          int hash[14] = {0};
          int maxval = -1, minval = 14;
          for (int x : numbers) {
              if (x) {
                  if (hash[x]) return false;
                  
                  hash[x]++;
                  maxval = max(maxval, x);
                  minval = min(minval, x);
              }
          }
          return maxval - minval <= 4;
      }
  };